class WorkListResponseEntity {
  int? code;
  List<WorkListItem>? data;
  String? message;

  WorkListResponseEntity({this.code, this.data, this.message});

  WorkListResponseEntity.fromJson(Map<String, dynamic> json) {
    code = json['code'];
    if (json['data'] != null) {
      data = [];
      json['data'].forEach((v) {
        data!.add(new WorkListItem.fromJson(v));
      });
    }
    message = json['message'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['code'] = this.code;
    if (this.data != null) {
      data['data'] = this.data!.map((v) => v.toJson()).toList();
    }
    data['message'] = this.message;
    return data;
  }
}

class WorkListItem {
  String? funCode;
  String? funName;
  String? parentCode;
  int? sortNo;
  String? router;
  String? routerSelected;
  String? description;
  String? isLeaf;
  String? target;
  String? icon;
  String? isEnable;
  String? isHidden;
  String? menuType;
  String? isLink;
  String? linkUrl;
  String? editTime;

  WorkListItem(
      {this.funCode,
        this.funName,
        this.parentCode,
        this.sortNo,
        this.router,
        this.routerSelected,
        this.description,
        this.isLeaf,
        this.target,
        this.icon,
        this.isEnable,
        this.isHidden,
        this.menuType,
        this.isLink,
        this.linkUrl,
        this.editTime});

  WorkListItem.fromJson(Map<String, dynamic> json) {
    funCode = json['funCode'];
    funName = json['funName'];
    parentCode = json['parentCode'];
    sortNo = json['sortNo'];
    router = json['router'];
    routerSelected = json['routerSelected'];
    description = json['description'];
    isLeaf = json['isLeaf'];
    target = json['target'];
    icon = json['icon'];
    isEnable = json['isEnable'];
    isHidden = json['isHidden'];
    menuType = json['menuType'];
    isLink = json['isLink'];
    linkUrl = json['linkUrl'];
    editTime = json['editTime'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['funCode'] = this.funCode;
    data['funName'] = this.funName;
    data['parentCode'] = this.parentCode;
    data['sortNo'] = this.sortNo;
    data['router'] = this.router;
    data['routerSelected'] = this.routerSelected;
    data['description'] = this.description;
    data['isLeaf'] = this.isLeaf;
    data['target'] = this.target;
    data['icon'] = this.icon;
    data['isEnable'] = this.isEnable;
    data['isHidden'] = this.isHidden;
    data['menuType'] = this.menuType;
    data['isLink'] = this.isLink;
    data['linkUrl'] = this.linkUrl;
    data['editTime'] = this.editTime;
    return data;
  }
}
